package com.pqmvc{
	public class PQMVC	{
		static private var em:PQEventDispatcher=new PQEventDispatcher();
		static private var dt:PQData=new PQData();
		static public var self:PQMVC=new PQMVC();
		public function PQMVC()
		{
		}
		public function addListen(event:String,callBack:Function):void{
			em.addListen(event,callBack);
		}
		public function call(event:String,...args):void{
			args.unshift(event);
			em.call.apply(null,args);
		}
		public function removeListen(event:String,func:Function):void{
			em.removeListen(event,func);
		}
		public function shareData(key:String,data:Function):void{
			dt.shareData(key,data);
		}
		public function getData(key:String,...args):Object{
			return dt.getData(key,args);
		}
		protected function regProxy(c:Class):void{
			new c();
		}
	}
}